<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let dog={
        name:'dahuang',
        color:'yellow',
        age:3,
        weight:250,
   
     habit:function(){
        console.log("喜欢吃大骨头")
    },
     walk:function(){
         console.log("走得慢")
    }
     
     }
     console.log(dog.name,dog.color,dog.age,dog.weight)
     dog.habit()
     dog.walk()
</script>
<script>
    let phone={
        typle:'apple',
        color:'black',
        talk:function(){
            console.log("通话中")
        },
        messager:function(){
            console.log("发短信")
        }

    }
    console.log(phone.typle,phone.color)
    phone.talk()
    phone.messager()


</script>
</html>